<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Park_number.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormFileds="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormFileds="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/Park_number.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid
  },
  data () {
    return {
      table: {
        key: 'id',
        footer: "Foots",
        cnName: '入园统计',
        name: 'Park_number',
        url: "/ParkNumbers/",
        sortName: "id"
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { "guest_name": "", "mobile": "", "idcls": "", "ident": "", "cardno": "", "cardtype": "", "create_time": "" },
      searchFormOptions: [
        [{ field: 'guest_name', title: '档案姓名', type: 'like' },
        { field: "mobile", title: "手机号码", type: "like" },
        { field: 'idcls', title: '证件类型', type: 'select', dataKey: "xmsidcard", data: [] },
        { field: 'ident', title: '证件号', type: 'like' }],
        [{ field: 'cardno', title: '卡号', type: 'like' },
        { field: 'cardtype', title: '卡类型', type: 'select', dataKey: "Card_Type", data: [] },
        { field: 'create_time', title: '入园时间', type: 'datetime', "colSize": 6 }],
      ],
      columns: [{ field: 'id', title: '主键', type: 'int', width: 90, hidden: true, readonly: true, require: true, align: 'left' },
      { field: 'create_time', title: '入园时间', type: 'datetime', width: 160, align: 'left', sortable: true },
      { field: 'guest_name', title: '档案姓名', type: 'string', width: 90, align: 'left', show: true },
      { field: 'mobile', title: '手机号码', type: 'string', width: 120, align: 'left' },
      { field: 'idcls', title: '证件类型', bind: { key: "xmsidcard", data: [] },type: 'string', width: 220, align: 'left' },
      { field: 'ident', title: '证件号', type: 'string', width: 220, align: 'left' },
      { field: 'cardno', title: '卡号', type: 'string', width: 120, align: 'left' },
      { field: 'cardtype', title: '卡类型', type: 'string', width: 120, align: 'left' },
      { field: 'gateid', title: '闸机', type: 'string', width: 120, align: 'left', bind: { key: "gate", data: [] }, }],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: ""
      }
    };
  }
};
export default vueParam;
</script>
